home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
Apps
/
ScreenSavers
/
BackSpaceViews
/
SchoolView.BackModule
/
School.psw
< prev
next >
Wrap
Text File
|
1995-06-12
|
5KB
|
199 lines
defineps PSWDavesDefFont(char *fontname)
15 dict dup begin
/FontName /fontname def
/FontType 3 def
/FontMatrix [0.001 0 0 0.001 0 0] def
/FontBBox [-500 -500 500 500] def
/Encoding 256 array def
0 1 255 {Encoding exch /.notdef put} for
Encoding
dup (A) 0 get /Blank put
dup (u) 0 get /up put
dup (1) 0 get /upLeft put
dup (l) 0 get /left put
dup (2) 0 get /downLeft put
dup (d) 0 get /down put
dup (3) 0 get /downRight put
dup (r) 0 get /right put
(4) 0 get /upRight put
/CharProcs 6 dict def
CharProcs begin
/.notdef {} bind def
/Blank {
0 setgray
-500 -500 1000 1000 rectfill
} bind def
/up {
0 -480 moveto
-100 -100 -100 200 -30 370 curveto
-300 250 -200 420 0 480 curveto
200 420 300 250 30 370 curveto
100 200 100 -100 0 -480 curveto
0 -300 moveto
20 -20 20 40 0 300 curveto
-20 40 -20 -20 0 -300 curveto
-170 350 moveto
-170 350 20 0 300 arc
170 350 moveto
170 350 20 240 180 arc
fill
} bind def
/upLeft {
339.36 -339.36 moveto
0 -141.4 -212.1 70.7 -282.8 240.38 curveto
-388.85 -35.35 -438.34 155.54 -339.36 339.36 curveto
-155.54 438.34 35.35 388.85 -240.38 282.8 curveto
-70.7 212.1 141.4 0 339.36 -339.36 curveto
212.1 -212.1 moveto
28.28 0 -14.14 42.42 -212.1 212.1 curveto
-42.42 14.14 0 -28.28 212.1 -212.1 curveto
-367.64 127.26 moveto
-367.64 127.26 20 0 300 arc
-127.26 367.64 moveto
-127.26 367.64 20 240 180 arc
fill
} bind def
/left {
480 0 moveto
100 -100 -200 -100 -370 -30 curveto
-250 -300 -420 -200 -480 0 curveto
-420 200 -250 300 -370 30 curveto
-200 100 100 100 480 0 curveto
300 0 moveto
20 20 -40 20 -300 0 curveto
-40 -20 20 -20 300 0 curveto
-350 -170 moveto
-350 -170 20 0 300 arc
-350 170 moveto
-350 170 20 240 180 arc
fill
} bind def
/downLeft {
339.36 339.36 moveto
141.4 0 -70.7 -212.1 -240.38 -282.8 curveto
35.35 -388.85 -155.54 -438.34 -339.36 -339.36 curveto
-438.34 -155.54 -388.85 35.35 -282.8 -240.38 curveto
-212.1 -70.7 0 141.4 339.36 339.36 curveto
212.1 212.1 moveto
0 28.28 -42.42 -14.14 -212.1 -212.1 curveto
-14.14 -42.42 28.28 0 212.1 212.1 curveto
-127.26 -367.64 moveto
-127.26 -367.64 20 0 300 arc
-367.64 -127.26 moveto
-367.64 -127.26 20 240 180 arc
fill
} bind def
/down {
0 480 moveto
100 100 100 -200 30 -370 curveto
300 -250 200 -420 0 -480 curveto
-200 -420 -300 -250 -30 -370 curveto
-100 -200 -100 100 0 480 curveto
0 300 moveto
-20 20 -20 -40 0 -300 curveto
20 -40 20 20 0 300 curveto
170 -350 moveto
170 -350 20 0 300 arc
-170 -350 moveto
-170 -350 20 240 180 arc
fill
} bind def
/downRight {
-339.36 339.36 moveto
0 141.4 212.1 -70.7 282.8 -240.38 curveto
388.85 35.35 438.34 -155.54 339.36 -339.36 curveto
155.54 -438.34 -35.35 -388.85 240.38 -282.8 curveto
70.7 -212.1 -141.4 0 -339.36 339.36 curveto
-212.1 212.1 moveto
-28.28 0 14.14 -42.42 212.1 -212.1 curveto
42.42 -14.14 0 28.28 -212.1 212.1 curveto
367.64 -127.26 moveto
367.64 -127.26 20 0 300 arc
127.26 -367.64 moveto
127.26 -367.64 20 240 180 arc
fill
} bind def
/right {
-480 0 moveto
-100 100 200 100 370 30 curveto
250 300 420 200 480 0 curveto
420 -200 250 -300 370 -30 curveto
200 -100 -100 -100 -480 0 curveto
-300 0 moveto
-20 -20 40 -20 300 0 curveto
40 20 -20 20 -300 0 curveto
350 170 moveto
350 170 20 0 300 arc
350 -170 moveto
350 -170 20 240 180 arc
fill
} bind def
/upRight {
-339.36 -339.36 moveto
-141.4 0 70.7 212.1 240.38 282.8 curveto
-35.35 388.85 155.54 438.34 339.36 339.36 curveto
438.34 155.54 388.85 -35.35 282.8 240.38 curveto
212.1 70.7 0 -141.4 -339.36 -339.36 curveto
-212.1 -212.1 moveto
0 -28.28 42.42 14.14 212.1 212.1 curveto
14.14 42.42 -28.28 0 -212.1 -212.1 curveto
127.26 367.64 moveto
127.26 367.64 20 0 300 arc
367.64 127.26 moveto
367.64 127.26 20 240 180 arc
fill
} bind def
end
/BuildGlyph
{
500 0 -500 -500 500 500 setcachedevice
true setstrokeadjust
exch /CharProcs get exch
2 copy known not {pop /.notdef } if
get exec
} bind def
/BuildChar
{
1 index /Encoding get exch get
1 index /BuildGlyph get exec
} bind def
end
/fontname exch definefont pop
endps
defineps PSWDavesXYShow(float X, Y; char *string; float numstring XYCoords[j]; int j)
X Y moveto (string) XYCoords xyshow
endps